source $HOME/local/devel-tool/arm/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/env.bashrc

make clean

target=linux-x86_64
target=linux-aarch64
cross_build=--cross-compile-prefix=aarch64-linux-gnu-

set -e
./Configure --prefix=$(pwd)/_install \
    no-engine \
    no-async \
    no-makedepend \
    no-pinshared \
    no-static-engine \
    no-autoerrinit \
    no-autoload-config \
    no-capieng \
    no-dso \
    no-filenames \
    no-fips \
    no-gost \
    no-hw-padlock \
    no-legacy \
    no-makedepend \
    no-module \
    no-multiblock \
    no-nextprotoneg \
    no-ocsp \
    no-padlockeng \
    no-pic \
    no-posix-io \
    no-rdrand \
    no-rfc3779 \
    no-shared \
    no-sock \
    no-srp \
    no-srtp \
    no-stdio \
    no-tests \
    no-threads \
    no-ts \
    no-ui \
    no-uplink \
    $cross_build $target

make -j7
make install -j7
